package org.pidan.basic.designModel.appearance;

/**
 * {@code @description}: 外观模式
 * {@code @author}: huangyuxin
 * {@code @date}: 2023-11-16
 */
public class Client {

    public static void main(String[] args) {

        //普通情况
        AliyunSmsService aliyunSmsService = new AliyunSmsServiceImpl();
        aliyunSmsService.sendSms();

        TencentEmailService tencentEmailService = new TencentEmailServiceImpl();
        tencentEmailService.sendEmail();

        WeiXinService weiXinService = new WeiXinServiceImpl();
        weiXinService.sendMessage();


        //外观模式简化
        Computer computer = new Computer();
        computer.sendMessage();
    }
}
